﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Vehicle
    {
        private string name;
   public string Name { get => name; set => name = value; }
        public Vehicle() { }
        public Vehicle(string name) 
        {
            this.Name = name;
        }
        public void SayHi()
        {
            Console.WriteLine("我是{0}交通工具", this.Name);
        }
    }
}
